<?php
session_start(); 
  include("../../sql/connexionmysql.php");
  include("../../controlleur/utilities.php");
  $_SESSION['admin'] = 1;
  if ($_SESSION['admin'] < 1)
		header("location:/../../index.php");
  
  $idTournamentDraw = $_POST['idTournamentDraw'];
  global $tournamentId;
  $tournamentId = $idTournamentDraw;
  $numberOfRound = getNumberOfRound($idTournamentDraw);
  addRoundForTournament($numberOfRound + 1, $idTournamentDraw, '');
  include($ROOT . 'page/getMatchJson.php');
?>